package designpattern.adapter.third;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/20/14:44
 * @Description:
 */
public class ThirdAuthAdapter extends AuthServiceImpl implements IThirdAuthService{
    @Override
    public String QQAuth(String authInfo) {
        return "QQ授权成功";
    }

    @Override
    public String WeChatAuth(String authInfo) {
        return "微信授权成功";
    }

    @Override
    public String GitHubAuth(String authInfo) {
        return "Github授权成功";
    }

    @Override
    public String register(String username, String password) {
        super.register(username, password);
        return super.login(username, password);
    }
}
